package system

import "5title_gin/internal/model"

// SysDept 部门表
type SysDept struct {
	model.Models
	DeptName     string `gorm:"size:255;comment:部门名称" binding:"required" json:"dept_name" label:"部门名称"`
	DeptCategory string `gorm:"size:255;comment:部门分类" json:"dept_category"`
	Leader       uint   `gorm:"comment:负责人" json:"leader"`
	Phone        string `gorm:"size:255;comment:联系电话" json:"phone"`
	Email        string `gorm:"size:255;comment:邮箱" json:"email"`
	DeptSort     uint   `gorm:"comment:排序" json:"dept_sort"`
	ParentId     uint   `gorm:"comment:父级id" json:"parent_id"`
	Status       uint8  `gorm:"comment:状态: 0=停用, 1=正常" json:"status"`
	CreateDept   uint   `gorm:"comment:创建部门" json:"create_dept"`
	CreateBy     uint   `gorm:"comment:创建者" json:"create_by"`
	UpdateBy     uint   `gorm:"comment:更新者" json:"update_by"`
}
type SysDeptBo struct {
	model.Models
	DeptName string `binding:"required" json:"deptName" label:"部门名称"`
	Leader   uint   `binding:"required" json:"leader" label:"负责人"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	DeptSort uint   `json:"deptSort"`
	ParentId uint   `json:"parentId"`
	Status   uint8  `json:"status"`
}
